<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <h1>您的生日是:{{birthday}}</h1>
        <br>
        {{getBirth}}
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{
                birthday:1565588398790
            },
            computed:{
                getBirth(){
                    let date = new Date(this.birthday);
                    return date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()
                }
            }
        })
    </script>
</body>
</html>